/*
 * VersionResource.h
 *
 *  Created on: 2013. 11. 26.
 *      Author: mega
 */

#ifndef VERSIONRESOURCE_H_
#define VERSIONRESOURCE_H_

#include <map>
#include <vector>

namespace ProjectZ { namespace NResource {

class VersionResource
{
public:
	typedef		std::vector<int>	VERSIONVECTOR;
	typedef		std::map<int, VERSIONVECTOR>	VERSIONTREE;

public:
	VersionResource();
	virtual ~VersionResource();

	bool	LoadResource();
	bool	IsAllowConnection(int company, int requestVersion);

private:
	VERSIONTREE	clsVersionTree;
};

} /*NResource*/ } /*ProjectZ*/

#endif /* VERSIONRESOURCE_H_ */
